require(["core", "hash_routie", "coAjax", "queryString", "href", "page_onload", "appConfigAdmin"], function(jSouper, hash_routie, coAjax, QueryString, href, page_onload) {

	/*
	 * 校验权限
	 */
	coAjax.get(appConfigPub.admin.loginer, function(data) {
		adminInfo = data.result;
		App.set("admin_loginer", adminInfo);

		App.set("configAdmin", appConfigAdmin);
		window.appConfig = jSouper.extend(window.appConfig, window.appConfigAdmin)
		App.set("config", appConfig);
		/*
		 * HASH路由
		 */
		hash_routie({
			html_url: "./pages/dotnar.com/admin/",
			js_url: "./js/dotnar.com/admin/",
			hash_prefix: "admin/:page",
			default_hash: "main",
			teleporter: "main"
		});

	}, function(errorCode) {
		console.log(errorCode);
		switch (errorCode) {
			case "JSON Parse Error":
				break;
			default:
				href.jump("/dotnar.login.html?cb_url=" + encodeURIComponent(location.href))
		}
	});

});